define(['jquery'], function ($) {
    new UserFind().render();
});
var UserFind = function UserFind() {
    var lis =$('.header-choose').find('li');
    var target = this;
    var checked =$('.header-choose').find('.active');
    this.render =function () {
        this.changeTab($('#display_' + $(checked).attr('attr')));
        for (let i = 0; i < lis.length; i++) {
            (function (j) {
                lis[j].onclick = function () {
                    $(this).addClass("active").siblings().removeClass("active");
                    $('.tab-content').hide();
                    target.changeTab('#'+$(this).attr('attr'));
                };
            })(i);
        }
    };
    /**
     * 切换tab
     * @param element
     *
     */
    this.changeTab = function (element) {
        $(element).show();
        //	$(element).find("img.lazy").lazyload({});
        //var total = $(element).attr('total');

    };
}